package com.hx.tiffshare.controller;

import com.hx.tiffshare.entity.AjaxResult;
import com.hx.tiffshare.service.ITiffSegService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/business/tiff")
public class TiffController {

    @Autowired
    ITiffSegService tiffSegService;

    /**
     * 验证密码
     * @param password
     * @return
     */
    @PostMapping("/validPassword/{password}")
    public AjaxResult validPassword(@PathVariable String password) {
        AjaxResult ajax = tiffSegService.validPassword(password);
        return ajax;
    }
}
